// 自动生成模板UserProjectRefund
package model

import (
      "gin-vue-admin/global"
      "github.com/go-sql-driver/mysql"
      "time"
)

// 如果含有time.Time 请自行import time包
type UserProjectRefund struct {
      global.GVA_MODEL
      ExpectDate  time.Time `json:"expectDate" form:"expectDate" gorm:"column:expect_date;comment:应还日期;type:date;"`
      ExpectPrice  float64 `json:"expectPrice" form:"expectPrice" gorm:"column:expect_price;comment:应还金额;type:decimal;size:10,2;"`
      PayDate  mysql.NullTime `json:"payDate" form:"payDate" gorm:"column:pay_date;comment:实际还款日期;type:date;"`
      PayPrice  float64 `json:"payPrice" form:"payPrice" gorm:"column:pay_price;comment:时间还款金额;type:decimal;size:10,2;"`
      Period  int `json:"period" form:"period" gorm:"column:period;comment:期数;type:int;size:10;"`
      ProjectId  int `json:"projectId" form:"projectId" gorm:"column:project_id;comment:信用项目ID;type:int;size:10;"`
      Status  int `json:"status" form:"status" gorm:"column:status;comment:当前还款状态;type:smallint;"`
      UserId  int `json:"userId" form:"userId" gorm:"column:user_id;comment:用户ID;type:int;size:10;"`
      UserProject UserProject `json:"user_project" gorm:"foreignKey:ID;references:ProjectId"`
      PayPic  string `json:"payPic" form:"payPic" gorm:"column:pay_pic;comment:还款图片;type:varchar(255);"`

}


func (UserProjectRefund) TableName() string {
  return "user_project_refund"
}

